package com.xuexiang.xuidemo.ability;

import com.xuexiang.xuidemo.slice.LayoutAbilitySlice;
import com.xuexiang.xuidemo.slice.button.*;
import com.xuexiang.xuidemo.slice.layout.*;
import ohos.aafwk.content.Intent;

public class XUILayoutAbility extends BaseAbility{
    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(LayoutAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, AlphaViewAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, XUILayoutAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, GroupListViewAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, ExpandableLayoutAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, LinkageScrollLayoutAbilitySlice.class.getName());
        // 配置此ACTION,以便支持导航到该页面
        //addActionRoute(Intent.ACTION_QUERY_WEATHER, xxx.class.getName());
    }
}
